import hyRequest from "./index";
import type { ResultType } from "./index";
export type IOppoType = "oppo" | "air" | "watch" | "tablet";

export const getOppoDetailInfo = (dat:any) => {
  let data= hyRequest.get<ResultType<any>>("/promotion/baseDate",dat);
  return data
};
export const getOppoDetailProject = (dat:any) => {
  let data=  hyRequest.get<ResultType<any>>("/promotion/project",dat);
    return data
  };
  export const getLink = (dat:any) => {
    let data= hyRequest.get<ResultType<any>>("/promotion/link",dat);
  return data
};
  export const postLink = (data:any) => {
    return hyRequest.post<ResultType<any>>("/link",data);
  };
